package cn.imvc.app.models;

import java.util.List;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.DealerLevel;
import cn.imvc.data.domain.ViewRequest;

public interface DealerLevelModel{
	Page<DealerLevel> find(ViewRequest viewRequest);

	DealerLevel get(int id);

	DealerLevel save(DealerLevel entity);

	DealerLevel update(DealerLevel entity);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	List<DealerLevel> findByLevelGreaterThan (int level);
	
	List<DealerLevel> findAll();
	
	List<Object[]> findMaxLevel();
	
	/**
	 * 获取最低分销商等级
	 * @return
	 */
	DealerLevel findMinDealerLevel();
	DealerLevel findByLevel(int level);
	
}